//
//  UINavigationBar+YH.m
//  MoreCoin
//
//  Created by 林宁宁 on 2019/9/20.
//  Copyright © 2019 MoreCoin. All rights reserved.
//

#import "UINavigationBar+YH.h"
#import "UIColor+YHStyle.h"
#import "UIFont+YH.h"

@implementation UINavigationBar (YH)


-(void)yh_setNavigationBar{
    // 去掉navigationbar的分割线
    [self setShadowImage:[UIImage new]];
    [self setTranslucent:NO]; // 设置navigationBar的透明效果
    [self setTintColor:[UIColor yh_theme]];
    
    NSDictionary *attrs = @{NSFontAttributeName: [UIFont yh_hnbOfSize:18],
                            NSForegroundColorAttributeName:[UIColor yh_h1]};
    [self setTitleTextAttributes:attrs];
    
    [self setBackgroundImage:[[UIColor yh_background] yh_drawImageWithColor] forBarMetrics:UIBarMetricsDefault];
}

@end
